package com.glorysoft.xztpda.entity;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.glorysoft.xztpda.BR;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: MosEntity
 * Author: XJH
 * Date: 2022/7/4 17:52
 * Description:
 * History:
 */
public class MosEntity implements Serializable {

    private List<MosInfoEntity> XZTMOSLIST;

    public List<MosInfoEntity> getXZTMOSLIST() {
        if (XZTMOSLIST == null) {
            return new ArrayList<>();
        }
        return XZTMOSLIST;
    }

    public void setXZTMOSLIST(List<MosInfoEntity> XZTMOSLIST) {
        this.XZTMOSLIST = XZTMOSLIST;
    }

    public static class MosInfoEntity extends BaseObservable implements  Serializable{
        private String MODID;
        private long OBJECTRRN;
        private String MOSID;
        private String SODID;
        private String CUSPO;
        private String CINVCODE;
        private String NAME;
        private String YZ;
        private String YZZ;
        private String YZDC;
        private int QTY;
        private int REELQTY;
        private int ALLOWTRACKQTY;
        private int MAINQTY;
        private boolean checkMos;

        public String getYZZ() {
            return YZZ == null ? "" : YZZ;
        }

        public void setYZZ(String YZZ) {
            this.YZZ = YZZ;
        }

        public String getYZDC() {
            return YZDC == null ? "" : YZDC;
        }

        public void setYZDC(String YZDC) {
            this.YZDC = YZDC;
        }

        public long getOBJECTRRN() {
            return OBJECTRRN;
        }

        public void setOBJECTRRN(long OBJECTRRN) {
            this.OBJECTRRN = OBJECTRRN;
        }

        public int getALLOWTRACKQTY() {
            return ALLOWTRACKQTY;
        }

        public void setALLOWTRACKQTY(int ALLOWTRACKQTY) {
            this.ALLOWTRACKQTY = ALLOWTRACKQTY;
        }

        public int getMAINQTY() {
            return MAINQTY;
        }

        public void setMAINQTY(int MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        @Bindable
        public boolean isCheckMos() {
            return checkMos;
        }

        public void setCheckMos(boolean checkMos) {
            this.checkMos = checkMos;
//            notifyChange();
        }

        public String getMODID() {
            return MODID == null ? "" : MODID;
        }

        public void setMODID(String MODID) {
            this.MODID = MODID;
        }

        public String getMOSID() {
            return MOSID == null ? "" : MOSID;
        }

        public void setMOSID(String MOSID) {
            this.MOSID = MOSID;
        }

        public String getSODID() {
            return SODID == null ? "" : SODID;
        }

        public void setSODID(String SODID) {
            this.SODID = SODID;
        }

        public String getCUSPO() {
            return CUSPO == null ? "" : CUSPO;
        }

        public void setCUSPO(String CUSPO) {
            this.CUSPO = CUSPO;
        }

        public String getCINVCODE() {
            return CINVCODE == null ? "" : CINVCODE;
        }

        public void setCINVCODE(String CINVCODE) {
            this.CINVCODE = CINVCODE;
        }

        public String getNAME() {
            return NAME == null ? "" : NAME;
        }

        public void setNAME(String NAME) {
            this.NAME = NAME;
        }

        public String getYZ() {
            return YZ == null ? "" : YZ;
        }

        public void setYZ(String YZ) {
            this.YZ = YZ;
        }

        public int getQTY() {
            return QTY;
        }

        public void setQTY(int QTY) {
            this.QTY = QTY;
        }

        public int getREELQTY() {
            return REELQTY;
        }

        public void setREELQTY(int REELQTY) {
            this.REELQTY = REELQTY;
        }
    }
}

